home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-01-24 | 4.0 KB | 138 lines | [TEXT/MPS ] |
- ;
- ; File: ConnectionTools.a
- ;
- ; Contains: Communications Toolbox Connection Tools Interfaces.
- ;
- ; Version: Technology: System 7.5
- ; Package: Universal Interfaces 2.2 in “MPW” on ETO #20
- ;
- ; Copyright: © 1984-1995 by Apple Computer, Inc.
- ; All rights reserved.
- ;
- ; Bugs?: If you find a problem with this file, use the Apple Bug Reporter
- ; stack. Include the file and version information (from above)
- ; in the problem description and send to:
- ; Internet: apple.bugs@applelink.apple.com
- ; AppleLink: APPLE.BUGS
- ;
- ;
-
- IF &TYPE('__CONNECTIONTOOLS__') = 'UNDEFINED' THEN
- __CONNECTIONTOOLS__ SET 1
-
-
- IF &TYPE('__WINDOWS__') = 'UNDEFINED' THEN
- include 'Windows.a'
- ENDIF
- ; include 'Types.a' ;
- ; include 'ConditionalMacros.a' ;
- ; include 'Memory.a' ;
- ; include 'MixedMode.a' ;
- ; include 'Quickdraw.a' ;
- ; include 'QuickdrawText.a' ;
- ; include 'Events.a' ;
- ; include 'OSUtils.a' ;
- ; include 'Controls.a' ;
- ; include 'Menus.a' ;
-
- IF &TYPE('__DIALOGS__') = 'UNDEFINED' THEN
- include 'Dialogs.a'
- ENDIF
- ; include 'Errors.a' ;
- ; include 'TextEdit.a' ;
-
- IF &TYPE('__CONNECTIONS__') = 'UNDEFINED' THEN
- include 'Connections.a'
- ENDIF
- ; include 'CTBUtilities.a' ;
- ; include 'StandardFile.a' ;
- ; include 'Files.a' ;
- ; include 'Finder.a' ;
- ; include 'AppleTalk.a' ;
-
- ; messages for DefProc
- cmInitMsg EQU 0
- cmDisposeMsg EQU 1
- cmSuspendMsg EQU 2
- cmResumeMsg EQU 3
- cmMenuMsg EQU 4
- cmEventMsg EQU 5
- cmActivateMsg EQU 6
- cmDeactivateMsg EQU 7
- cmIdleMsg EQU 50
- cmResetMsg EQU 51
- cmAbortMsg EQU 52
- cmReadMsg EQU 100
- cmWriteMsg EQU 101
- cmStatusMsg EQU 102
- cmListenMsg EQU 103
- cmAcceptMsg EQU 104
- cmCloseMsg EQU 105
- cmOpenMsg EQU 106
- cmBreakMsg EQU 107
- cmIOKillMsg EQU 108
- cmEnvironsMsg EQU 109
- ; new connection tool messages for ctb 1.1
- cmNewIOPBMsg EQU 110
- cmDisposeIOPBMsg EQU 111
- cmGetErrorStringMsg EQU 112
- cmPBReadMsg EQU 113
- cmPBWriteMsg EQU 114
- cmPBIOKillMsg EQU 115
- ; messages for validate DefProc
- cmValidateMsg EQU 0
- cmDefaultMsg EQU 1
- ; messages for Setup DefProc
- cmSpreflightMsg EQU 0
- cmSsetupMsg EQU 1
- cmSitemMsg EQU 2
- cmSfilterMsg EQU 3
- cmScleanupMsg EQU 4
- ; messages for scripting defProc
- cmMgetMsg EQU 0
- cmMsetMsg EQU 1
- ; messages for localization defProc
- cmL2English EQU 0
- cmL2Intl EQU 1
-
- ; private data constants
- cdefType EQU 'cdef' ; main connection definition procedure
- cvalType EQU 'cval' ; validation definition procedure
- csetType EQU 'cset' ; connection setup definition procedure
- clocType EQU 'cloc' ; connection configuration localization defProc
- cscrType EQU 'cscr' ; connection scripting defProc interfaces
- cbndType EQU 'cbnd' ; bundle type for connection
- cverType EQU 'vers'
-
- CMDataBuffer RECORD 0
- thePtr ds.l 1 ; offset: $0 (0)
- count ds.l 1 ; offset: $4 (4)
- channel ds.w 1 ; offset: $8 (8)
- flags ds.w 1 ; offset: $A (10)
- sizeof EQU * ; size: $C (12)
- ENDR
-
- ; typedef struct CMDataBuffer CMDataBuffer
- ; typedef CMDataBuffer *CMDataBufferPtr
- CMCompletorRecord RECORD 0
- async ds.b 1 ; offset: $0 (0)
- filler ds.b 1 ; offset: $1 (1)
- completionRoutine ds.l 1 ; offset: $2 (2)
- sizeof EQU * ; size: $6 (6)
- ENDR
-
- ; typedef struct CMCompletorRecord CMCompletorRecord
- ; typedef CMCompletorRecord *CMCompletorPtr
- ; Private Data Structure
- CMSetupStruct RECORD 0
- theDialog ds.l 1 ; offset: $0 (0)
- count ds.w 1 ; offset: $4 (4)
- theConfig ds.l 1 ; offset: $6 (6)
- procID ds.w 1 ; offset: $A (10) ; procID of the tool
- sizeof EQU * ; size: $C (12)
- ENDR
-
- ; typedef struct CMSetupStruct CMSetupStruct
- ; typedef CMSetupStruct *CMSetupPtr
- ENDIF ; __CONNECTIONTOOLS__
-